Skip to content

Conversation

@Jefffrey
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Lint already enforced at the workspace level so don't need to have these individual denies in each lib.rs (still maintain exclusion for tests though).

What changes are included in this PR?

Remove #![deny(clippy::needless_pass_by_value)] in each lib.rs.

Are these changes tested?

Manually tested; the lint still seems to work, e.g. when I comment out an #[expect(clippy::needless_pass_by_value)] then clippy still flags it due to workspace lint rules.

Are there any user-facing changes?

No.

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates optimizer Optimizer rules core Core DataFusion crate substrait Changes to the substrait crate catalog Related to the catalog crate common Related to common crate execution Related to the execution crate proto Related to proto crate functions Changes to functions implementation datasource Changes to the datasource crate ffi Changes to the ffi crate physical-plan Changes to the physical-plan crate spark labels Nov 30, 2025
@Jefffrey Jefffrey marked this pull request as ready for review November 30, 2025 02:36
@Jefffrey Jefffrey requested a review from 2010YOUY01 November 30, 2025 02:36
Copy link
Contributor

@2010YOUY01 2010YOUY01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@Jefffrey Jefffrey added this pull request to the merge queue Dec 1, 2025
Merged via the queue into apache:main with commit 1a9821e Dec 1, 2025
34 checks passed
@Jefffrey Jefffrey deleted the remove-needless-indv-denies branch December 1, 2025 08:11
ShashidharM0118 pushed a commit to ShashidharM0118/datafusion that referenced this pull request Dec 1, 2025
…pache#18996)

## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

- Followup to apache#18904 (part of apache#18503)

## Rationale for this change

<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

Lint already enforced at the workspace level so don't need to have these
individual denies in each `lib.rs` (still maintain exclusion for tests
though).

## What changes are included in this PR?

<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->

Remove `#![deny(clippy::needless_pass_by_value)]` in each `lib.rs`.

## Are these changes tested?

<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->

Manually tested; the lint still seems to work, e.g. when I comment out
an `#[expect(clippy::needless_pass_by_value)]` then clippy still flags
it due to workspace lint rules.

## Are there any user-facing changes?

<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->

No.

<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

catalog Related to the catalog crate common Related to common crate core Core DataFusion crate datasource Changes to the datasource crate execution Related to the execution crate ffi Changes to the ffi crate functions Changes to functions implementation logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate proto Related to proto crate spark sql SQL Planner substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants